package route

import (
	"github.com/gin-gonic/gin"
	"nnxy-search-api/search-user-api/api"
	"nnxy-search-api/search-user-api/middleware"
)

func InitAdminRoute(router *gin.RouterGroup) {
	r := router.Group("user").Use(middleware.JwtAuth())
	{
		r.GET("", api.List)
		r.GET("/:id", api.Detail)
		r.POST("", api.New)
		r.PUT("/:id", api.Update)
		r.DELETE("/:id", api.Delete)
	}
}
